import * as VueRouter from "vue-router";
import { BaseList, BaseRouter } from "./routers/base";
import { IntermediateList, IntermediateRouter } from "./routers/intermediate";

const routes = [
  {
    path: "/",
    component: () => import("./components/ContextList.vue"),
    props: {
      lists: [BaseList, IntermediateList],
    },
    children: [...BaseRouter, ...IntermediateRouter],
  },
] as VueRouter.RouteRecordRaw[];

export default VueRouter.createRouter({
  history: VueRouter.createWebHashHistory("/"),
  routes,
});
